<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>订单结算页原型</title>
  <style>
    /* ===== 全局重置 ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html,
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                   "PingFang SC", "Hiragino Sans GB",
                   "Microsoft YaHei", sans-serif;
      background-color: #faf9f5;
      color: #333333;
      font-size: 14px;
      line-height: 1.4;
      height: 100%;
    }

    /* ===== 页面容器 ===== */
    .container {
      max-width: 480px;
      margin: 0 auto;
      background-color: #f1f2f4;
      min-height: 100%;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding-bottom: 80px;
    }

    /* ===== 顶部导航栏 ===== */
    .topNavBar {
      background-color: #ffffff;
      border-bottom: 1px solid #e0e0e0;
      padding: 12px 16px;
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .navLeft {
      width: 40px;
    }

    .backButton {
      font-size: 24px;
      color: #333333;
      border: none;
      background: none;
      cursor: pointer;
      padding: 0;
    }

    .navCenter {
      flex: 1;
      text-align: center;
    }

    .pageTitle {
      font-size: 18px;
      font-weight: 600;
      color: #333333;
    }

    .navRight {
      width: 40px;
    }

    /* ===== 内容区域 ===== */
    .content {
      flex: 1;
      padding: 10px;
      overflow-y: auto;
    }

    /* ===== 卡片通用样式 ===== */
    .card {
      background-color: #ffffff;
      border: none;
      border-radius: 6px;
      padding: 10px;
      margin-bottom: 10px;
    }

    /* 球馆信息卡片高度固定 */
    .card:first-of-type {
      height: 100px;
      display: flex;
      align-items: center;
    }

    /* ===== 卡片标题 ===== */
    .cardTitle {
      font-size: 14px;
      font-weight: 500;
      color: #333333;
      margin-bottom: 15px;
    }

    /* ===== 球馆卡片 ===== */
    .venueCard {
      height: 80px;
      display: flex;
      gap: 8px;
    }

    .venueThumbnail {
      width: 140px;
      height: 100%;
      flex-shrink: 0;
      background-color: #e8e8e8;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    /* 十字交叉线 */
    .venueThumbnail::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 70%;
      height: 1px;
      background: linear-gradient(to right, transparent, #cccccc, transparent);
      z-index: 1;
    }

    .venueThumbnail::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 1px;
      height: 70%;
      background: linear-gradient(to bottom, transparent, #cccccc, transparent);
      z-index: 1;
    }

    .placeholderText {
      position: relative;
      z-index: 2;
      font-size: 11px;
      color: #999999;
    }

    .venueInfo {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
      overflow: hidden;
      flex: 1;
    }

    .venueHeader {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      min-width: 0;
      gap: 8px;
    }

    .venueName {
      font-size: 14px;
      color: #333333;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .venueDistance {
      font-size: 12px;
      color: #999999;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 3px;
    }

    .distanceIcon {
      width: 12px;
      height: 12px;
      background-color: #d0d0d0;
      border-radius: 2px;
      flex-shrink: 0;
    }

    .venueLocation {
      font-size: 12px;
      color: #999999;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .venueTags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: auto;
    }

    .sportTag {
      display: inline-block;
      background-color: #f5f5f5;
      border: 1px solid #d0d0d0;
      padding: 0 8px;
      border-radius: 3px;
      font-size: 11px;
      color: #666666;
      font-weight: 500;
    }

    /* ===== 信息行 ===== */
    .infoRow {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
    }

    .infoRow:last-child {
      border-bottom: none;
    }

    .infoLabel {
      font-size: 13px;
      color: #666666;
    }

    .infoValue {
      font-size: 13px;
      color: #333333;
      font-weight: 500;
      text-align: right;
      flex: 1;
      margin-left: 12px;
    }

    /* ===== 金额信息 ===== */
    .priceSection {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .priceLabel {
      font-size: 14px;
      font-weight: 500;
      color: #333333;
    }

    .priceAmount {
      font-size: 18px;
      font-weight: 600;
      color: #333333;
    }

    .priceCurrency {
      font-size: 18px;
      margin-right: 2px;
      font-weight: 600;
    }

    /* ===== 底部操作区 ===== */
    .bottomActions {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #ffffff;
      border-top: 1px solid #e0e0e0;
      padding: 12px 16px;
      z-index: 99;
      max-width: 480px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 16px;
    }

    /* ===== 底部价格显示区 ===== */
    .priceInfo {
      display: flex;
      flex-direction: column;
      gap: 2px;
      text-align: right;
    }

    .priceDesc {
      font-size: 11px;
      color: #999999;
    }

    .totalLabel {
      font-size: 13px;
      color: #333333;
    }

    .totalAmount {
      display: flex;
      align-items: baseline;
      gap: 2px;
      justify-content: flex-end;
    }

    .amountText {
      font-size: 18px;
      color: #333333;
      font-weight: 600;
    }

    .amountValue {
      font-size: 20px;
      font-weight: 600;
      color: #333333;
    }
    .actionButton {
      border: none;
      border-radius: 6px;
      padding: 14px 36px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .submitButton {
      background-color: #333333;
      color: #ffffff;
      min-width: 100px;
    }

    .submitButton:hover {
      background-color: #2a2a2a;
      transform: translateY(-1px);
    }

    .submitButton:active {
      transform: translateY(0);
    }

    /* ===== 响应式调整 ===== */
    @media (max-width: 375px) {
      .content {
        padding: 12px;
      }

      .card {
        padding: 12px;
      }

      .bottomActions {
        padding: 12px;
        gap: 10px;
      }

      .actionButton {
        padding: 12px 20px;
        font-size: 15px;
      }

      .amountValue {
        font-size: 18px;
      }

      .venueThumbnail {
        width: 80px;
        height: 80px;
      }
    }
  </style>
</head>
<body>
  <div class="container">
    <!-- 顶部导航栏 -->
    <div class="topNavBar">
      <div class="navLeft">
        <button class="backButton">‹</button>
      </div>
      <div class="navCenter">
        <div class="pageTitle">订单结算</div>
      </div>
      <div class="navRight"></div>
    </div>

    <!-- 内容区域 -->
    <div class="content">
      <!-- 球馆信息卡片 -->
      <div class="card">
        <div class="venueCard">
          <div class="venueThumbnail">
            <span class="placeholderText">图片占位</span>
          </div>
          <div class="venueInfo">
            <div class="venueName">众乐谷丰路足球训练基地</div>
            <div class="venueLocation">南昌市青山湖区丰和南大道999号</div>
            <div class="venueTags">
              <span class="sportTag">足球</span>
            </div>
          </div>
        </div>
      </div>

      <!-- 订单详情卡片 -->
      <div class="card">
        <div class="cardTitle">订单详情</div>
        <div class="infoRow">
          <span class="infoLabel">球局名称</span>
          <span class="infoValue">蓝天霸主局</span>
        </div>
        <div class="infoRow">
          <span class="infoLabel">球局类型</span>
          <span class="infoValue">足球</span>
        </div>
        <div class="infoRow">
          <span class="infoLabel">比赛时间</span>
          <span class="infoValue">2025-10-29 14:00-15:00</span>
        </div>
        <div class="infoRow">
          <span class="infoLabel">场地</span>
          <span class="infoValue">5人制1号场</span>
        </div>
      </div>

      <!-- 费用信息卡片 -->
      <div class="card">
        <div class="cardTitle">费用信息</div>
        <div class="priceSection" style="justify-content: flex-end;">
          <div style="display: flex; align-items: center; gap: 8px;">
            <div style="font-size: 12px; color: #999999;">0.01元/30分钟，实付</div>
            <div class="priceAmount">
              <span class="priceCurrency">¥</span>
              <span>17.9</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 底部操作区 -->
    <div class="bottomActions">
      <div class="priceInfo">
        <div class="totalLabel">合计</div>
        <div class="totalAmount">
          <span class="amountText">¥</span>
          <span class="amountValue">17.9</span>
        </div>
      </div>
      <button class="actionButton submitButton" id="submitButton">支付</button>
    </div>
  </div>

  <script>
    // 支付按钮
    const submitButton = document.getElementById('submitButton');
    submitButton.addEventListener('click', function() {
      // 模拟支付流程
      alert('准备进入支付流程...');

      // 这里会调用支付接口
      // 支付成功后跳转到球局详情页
      setTimeout(function() {
        alert('支付成功！球局创建成功');
        // 跳转到球局详情页（模拟）
        window.location.href = '首页原型.html';
      }, 1000);
    });

    // 返回按钮
    const backButton = document.querySelector('.backButton');
    backButton.addEventListener('click', function() {
      window.history.back();
    });
  </script>
</body>
</html>
